package com.baizhi.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

//学生实体类
public class Student implements Serializable {
    private Integer id;
    private String name;
    private String phone;
    private Integer age;
    private String qq;
    private Date birthday;
    private String attr;
    private String stars;

    /*定义关系属性*/
    private Class clazz;
    private Group group;
    private City city;
    private List<Tag> tags;


    public Student() {
    }

    public Student(Integer id, String name, String phone, Integer age, String qq, Date birthday, String attr, String stars, Class clazz, Group group, City city, List<Tag> tags) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.age = age;
        this.qq = qq;
        this.birthday = birthday;
        this.attr = attr;
        this.stars = stars;
        this.clazz = clazz;
        this.group = group;
        this.city = city;
        this.tags = tags;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", age=" + age +
                ", qq='" + qq + '\'' +
                ", birthday=" + birthday +
                ", attr='" + attr + '\'' +
                ", stars='" + stars + '\'' +
                ", clazz=" + clazz +
                ", group=" + group +
                ", city=" + city +
                ", tags=" + tags +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr;
    }

    public String getStars() {
        return stars;
    }

    public void setStars(String stars) {
        this.stars = stars;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public List<Tag> getTags() {
        return tags;
    }

    public void setTags(List<Tag> tags) {
        this.tags = tags;
    }
}
